# 定义 发短信的任务
import random

from redis import Redis

from celery_tasks.main import celery_app
from celery_tasks.sms.send_sms import send

REDIS_KEY_MAP = {'ImageCode': 'img_',
                 'SmsCode': 'sms_', }


@celery_app.task()
def send_msg(mobile,msg_code):
    ret = send(mobile=[mobile], code=msg_code)

